package tester;

import java.util.ArrayList;

import to.OrderTO;
import to.OutcomeTO;
import to.ProductTO;
import DAO.ProductDAO;

public class ProductTest {
	public static void main(String[] args) throws Exception{
		ProductDAO dao = ProductDAO.getInstance();
		OrderTO oto = new OrderTO(0, 100, "t-1", 95, "c-1", 5);
		dao.insertOrder(oto);
//		ProductTO pto = new ProductTO( 1, 7, "cu-1", "se-1", "dy-1", "pi-1", 100, 100, 100, 100, 1, 2, 3, 2, "0511", "0511", "0511", "0511", "0511");
//		dao.insertProduction(pto);
//		OutcomeTO octo = new OutcomeTO(4, 1, 100, 100, 100, 100, "true", "true", "true", "true", null, null, null, null);
//		dao.insertOutcome(octo);
//		ArrayList list = dao.selectOrderListByOrderId(1);
//		System.out.println(list);
//		ArrayList list1 = dao.selectOrderListByProductId(4);
//		System.out.println(list1);
//		ArrayList<OrderTO> list2	 = dao.selectOrderList();
//		System.out.println(list2);
	}
}
